import { createSlice } from '@reduxjs/toolkit'

export const userS = createSlice({
  name: 'user',
  initialState:{
    userInfo:{},
    token:''
  },
  reducers: {
    increment: (state,action) => {
        state.userInfo=action.payload.userInfo
        state.token=action.payload.token
    },
  },
})


export const { increment } = userS.actions